/*
 * Created by JFormDesigner on Fri Nov 08 12:34:24 CST 2024
 */

package com.hafu.view.kehu;

import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
import net.miginfocom.swing.*;

/**
 * @author TPY
 */
public class ManageKeHuFrm extends JFrame {
    public ManageKeHuFrm() {
        initComponents();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        label1 = new JLabel();
        textField1 = new JTextField();
        button1 = new JButton();
        scrollPane1 = new JScrollPane();
        table1 = new JTable();
        label4 = new JLabel();
        textField2 = new JTextField();
        button2 = new JButton();
        label3 = new JLabel();
        textField3 = new JTextField();
        button3 = new JButton();

        //======== this ========
        setTitle("\u7ba1\u7406\u5ba2\u6237\u8868\u5355");
        Container contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- label1 ----
        label1.setText("\u5ba2\u6237\u540d\u5b57");
        contentPane.add(label1);
        label1.setBounds(new Rectangle(new Point(21, 21), label1.getPreferredSize()));
        contentPane.add(textField1);
        textField1.setBounds(94, 15, 143, textField1.getPreferredSize().height);

        //---- button1 ----
        button1.setText("\u67e5\u8be2");
        contentPane.add(button1);
        button1.setBounds(557, 14, 183, button1.getPreferredSize().height);

        //======== scrollPane1 ========
        {

            //---- table1 ----
            table1.setModel(new DefaultTableModel(
                new Object[][] {
                    {null, null, null},
                    {null, null, null},
                },
                new String[] {
                    "\u7f16\u53f7", "\u540d\u5b57", "\u7535\u8bdd"
                }
            ));
            scrollPane1.setViewportView(table1);
        }
        contentPane.add(scrollPane1);
        scrollPane1.setBounds(170, 95, 385, 390);

        //---- label4 ----
        label4.setText("\u5ba2\u6237\u540d\u5b57");
        contentPane.add(label4);
        label4.setBounds(new Rectangle(new Point(101, 506), label4.getPreferredSize()));
        contentPane.add(textField2);
        textField2.setBounds(new Rectangle(new Point(188, 500), textField2.getPreferredSize()));

        //---- button2 ----
        button2.setText("\u4fee\u6539");
        contentPane.add(button2);
        button2.setBounds(new Rectangle(new Point(557, 499), button2.getPreferredSize()));

        //---- label3 ----
        label3.setText("\u5ba2\u6237\u7535\u8bdd");
        contentPane.add(label3);
        label3.setBounds(new Rectangle(new Point(101, 558), label3.getPreferredSize()));
        contentPane.add(textField3);
        textField3.setBounds(new Rectangle(new Point(188, 552), textField3.getPreferredSize()));

        //---- button3 ----
        button3.setText("\u5220\u9664");
        contentPane.add(button3);
        button3.setBounds(new Rectangle(new Point(557, 551), button3.getPreferredSize()));

        {
            // compute preferred size
            Dimension preferredSize = new Dimension();
            for(int i = 0; i < contentPane.getComponentCount(); i++) {
                Rectangle bounds = contentPane.getComponent(i).getBounds();
                preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
            }
            Insets insets = contentPane.getInsets();
            preferredSize.width += insets.right;
            preferredSize.height += insets.bottom;
            contentPane.setMinimumSize(preferredSize);
            contentPane.setPreferredSize(preferredSize);
        }
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JLabel label1;
    private JTextField textField1;
    private JButton button1;
    private JScrollPane scrollPane1;
    private JTable table1;
    private JLabel label4;
    private JTextField textField2;
    private JButton button2;
    private JLabel label3;
    private JTextField textField3;
    private JButton button3;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
